/**
 * Project: apollo-base-tools
 * 
 * File Created at 2017年8月3日
 * 
 * Copyright 2015-2016 dx.com Croporation Limited.
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of
 * DongXue software Company. ("Confidential Information").  You shall not
 * disclose such Confidential Information and shall use it only in
 * accordance with the terms of the license agreement you entered into
 * with dx.com.
 */
package org.apollo.base.tools;

import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.Toolkit;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JTabbedPane;

import org.apollo.swing.component.JImagePane;
import org.apollo.swing.componentc.CTabbedPaneUI;
import org.apollo.swing.componentc.HeaderPane;
import org.apollo.swing.componentc.JCFrame;
import org.apollo.swing.componentc.JCTabbedPane;
import org.apollo.swing.layout.LineLayout;
import org.apollo.swing.layout.TictactoemidletLayout;
import org.apollo.swing.util.UIResourceManager;

/** 
* @ClassName: SwingDemo 
* @Description: TODO(这里用一句话描述这个类的作用) 
* @author wuzhenfang(wzfbj2008@163.com)
* @date 2017年8月3日 下午12:07:13 
* @version V1.0 
*/
public class SwingDemo {

	 /**
	 * 测试程序
	 * @param args String[]
	 */
	public static void main(String[] args) {
		// try {
		// UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
		// }
		// catch (Exception e) {
		// }
		JCFrame frame = new JCFrame();
		// frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		frame.setTitle("JGroupPanel Demo");
		frame.getContentPane().setLayout(new BorderLayout());
		JCTabbedPane p = new JCTabbedPane();
		p.setUI(new CTabbedPaneUI());
		p.addTab("111", new JPanel());
		p.addTab("112", new JPanel());
//		HeaderPane p = new HeaderPane();
//		JImagePane p = new JImagePane(UIResourceManager.getImage(UIResourceManager.KEY_WINDOW_TITLE_IMAGE),JImagePane.TILED);
		frame.getContentPane().add(p, BorderLayout.CENTER);

		frame.setSize(850, 600);
		Dimension d = Toolkit.getDefaultToolkit().getScreenSize();
		frame.setLocation((d.width - frame.getSize().width) / 2, (int) (d.height - frame.getSize().getHeight()) / 2);
		frame.setVisible(true);
	}
}
